<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>学生认证</title>
  <script src="js/vue.js"></script>
  <script src="js/httpVueLoader.js"></script>
  <link rel="stylesheet" href="https://unpkg.com/element-ui@2.14.1/lib/theme-chalk/index.css">
  <script src="https://unpkg.com/element-ui@2.14.1/lib/index.js"></script>
  <style>
    .forget-password {
      margin: 50px auto;
    }

    .submit-btn {
      margin: 0 60px;
    }

    .title {
      text-align: center;
      margin: 0 auto 30px auto;
    }

    .text-title {
      font-size: 1.2em;
    }

    .box-card {
      width: 480px;
      text-align: center;

    }

    .logo {
      width: 300px;
      height: 300px;
      position: relative;
      float: left;
      left: -100px;
    }

    #captcha {
      width: 210px;
      height: 55px;
    }
  </style>
</head>

<body>
  <div id="app">
    <el-container style="height: 650px;">
      <sider-component></sider-component>
      <div class="forget-password">
        <img src="../images/image01.jpg" class="logo">
        <el-main>
          <el-card class="box-card">
            <div class="text item">
              <div class="title">
                <span class="text-title">学生认证</span>
              </div>
              <el-form :inline="true" :model="formInline" class="demo-form-inline">
                <el-form-item label="学号">
                  <el-input v-model="formInline.stuNumber" placeholder="学号"></el-input>
                </el-form-item>
                <el-form-item label="密码">
                  <el-input v-model="formInline.password" placeholder="密码"></el-input>
                </el-form-item>
                <el-form-item label="验证码">
                  <img id="captcha" src="http://jwgl.nepu.edu.cn//yzm?d=1606561760702" alt="验证码">
                </el-form-item><br>
                <div class="submit-btn">
                  <el-button type="primary" native-type="submit" @click="onSubmit" plain>提 交</el-button>
                </div>
              </el-form>
            </div>
          </el-card>

        </el-main>
      </div>
    </el-container>

  </div>
  <script>
    Vue.use(httpVueLoader);

    new Vue({
      el: "#app",
      components: {
        'sider-component': 'url:component/SiderBar.vue',
      },
      data: {
        formInline: {
          stuNumber: '',
          password: '',
          region: ''
        }
      },
      methods: {
        onSubmit() {
          console.log('submit!');
        }
      }
    })
  </script>
</body>

</html>